package com.talent.service.order.controller;

import com.talent.common.model.TalentResult;
import com.talent.model.entity.order.TlOrder;
import com.talent.service.order.properties.OrderProperties;
import com.talent.service.order.service.IOrderService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName：OrderController
 * @Author: hszhou
 * @Date: 2025/2/27 17:46
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
@RestController
@RequiredArgsConstructor
@Slf4j
public class OrderController {


    private final IOrderService orderService;

    private final OrderProperties orderProperties;

    @GetMapping("demo")
    public TalentResult<TlOrder> createOrder(){
       TlOrder tlOrder = orderService.createOrder(1L, 2L);

//        String timeout = orderProperties.getTimeout();
//
//        String autoConfirm = orderProperties.getAutoConfirm();
//
//        String ddd = orderProperties.getDdd();
//
//        log.info("{}-{}-{}",timeout,autoConfirm,ddd);
        return TalentResult.success(null);

    }
}
